package com.dlyk.service.impl;

import com.dlyk.manager.StatisticManager;
import com.dlyk.result.ChartData;
import com.dlyk.result.SummaryData;
import com.dlyk.service.StatisticService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StatisticServiceImpl implements StatisticService {

    @Resource
    private StatisticManager statisticManager;

    /**
     * 获取概览统计数据
     */
    @Override
    public SummaryData getSummaryData() {
        return statisticManager.getSummaryData();
    }

    /**
     * 获取销售漏斗图表数据
     */
    @Override
    public List<ChartData> getSaleFunnelChartData() {
        return statisticManager.getSaleFunnelChartData();
    }

    /**
     * 获取线索来源统计饼图数据
     */
    @Override
    public List<ChartData> getClueSourcePieChartData() {
        return statisticManager.getClueSourcePieChartData();
    }

    /**
     * 获取市场活动数据统计柱状图
     */
    @Override
    public List<ChartData> getActivityBarChartData() {
        return statisticManager.getActivityBarChartData();
    }

    /**
     * 获取交易数据统计折线图
     */
    @Override
    public List<ChartData> getTranLineChart() {
        return statisticManager.getTranLineChart();
    }

}

